#ifndef CAIRX_H
#define CAIRX_H

#include <QObject>
#include "control/cknxcontrol.h"

class CAirx : public CKnxControl
{
    Q_OBJECT
public:
    explicit CAirx(QObject *parent = 0);
    void setKnxObject(void *xOBJECT);
    void execKnxAction(QString action,QString value);
    void readKnxAction();

    void parseExp(QString exp);
    void parseSelection(QString selection);

    QString valueCheck(QString action, QString value);
    QString actionFromStatus(QString address,QString value);
    void execDeviceAction(QString action,QString value,QString unit);

    QString getWindOrModeDefineIndex_ByStatusValue(QString value, QString status, QStringList defines);

    int _mode_id,_wind_id;

private:
    float _min,_max,_curent_temp;

    QString _onValue,_offValue;
    QString _feedbackAddress,_feedbackDimAddress,_feedbackModeAddress,_feedbackWindAddress;

    QStringList _sendOnArray,_sendValueArray,_sendModeArray,_sendWindArray,_selectionModeArray,_selectionWindArray;

    DATA_TYPE _feedbackDataType,_feedbackDimType,_feedbackModeType,_feedbackWindType;
    DATA_DEFINE _feedbackValueDefine,_feedbackDimDefine,_feedbackModeDefine,_feedbackWindDefine;
};

#endif // CAIRDIM_H
